'use strict';

function choose_no_repeat_number(collection) {

let result = collection.filter(function(element,index,self){
  return self.indexOf(element)===index;
});

console.log(result);
return result;
}

choose_no_repeat_number([1, 1, 1, 2, 2, 3, 4]);
module.exports = choose_no_repeat_number;
